POV-Ray : Newsgroups : povray.advanced-users : Using a Macro to add children to a predeclared object : Re: Using a Macro to add children to a predeclared object Server Time
29 Jul 2024 14:18:16 EDT (-0400)
  Re: Using a Macro to add children to a predeclared object  
From: JRG
Date: 4 Jan 2002 13:41:43
Message: <3c35f767@news.povray.org>
If you're familiar with C you could write a simple program which uses fgetc() or
fscanf() and strcmp() to achieve what you need.

--
#local j=text{ttf"arial""JRG".2,0}#local J=0;#while(J<10)#local R=0;#while
(R<2)#local G=0;#while(G<1)#if(inside(j<R,G.1>))object{j scale.025translate
<R-1G-J/20J/-40+2>pigment{rgb<9J>}}#debug"O"#else#debug" "#end#local G=G+
.025;#end#local R=R+.05;#debug"\n"#end#local J=J+1;#end// JRG

Home: http://digilander.iol.it/jrgpov


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.